import Page from './dev-kit/plop-templates/page/prompt.mjs'
import Component from './dev-kit/plop-templates/component/prompt.mjs'
import Mock from './dev-kit/plop-templates/mock/prompt.mjs'
import Store from './dev-kit/plop-templates/store/prompt.mjs'
import { mkdirAction } from './dev-kit/plop-actions/mkdir.mjs'

export default function (
  /** @type {import('plop').NodePlopAPI} */
  plop,
) {
  plop.setActionType('mkdir', mkdirAction)
  plop.setWelcomeMessage('请选择需要创建的模式：')
  plop.setGenerator('page', Page)
  plop.setGenerator('component', Component)
  plop.setGenerator('store', Store)
  plop.setGenerator('mock', Mock)
}
